Memory device and computing device using the same

ABSTRACT

A memory device is provided. The memory device includes: a memory cell configured to store weight data, a buffer memory configured to read the weight data from the memory cell, an input/output pad configured to receive input data and a multiply-accumulate (MAC) operator configured to receive the weight data from the buffer memory and receive the input data from the input/output pad to perform a convolution operation of the weight data and the input data, wherein the input data is provided to the MAC operator during a first period, and wherein the MAC operator performs the convolution operation of the weight data and the input data during a second period overlapping with the first period.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority from Korean Patent Application No. 10-2019-0014683 filed on Feb. 8, 2019 in the Korean Intellectual Property Office, and all the benefits accruing therefrom under 35 U.S.C. 119, the contents of which in its entirety are herein incorporated by reference.

BACKGROUND 1. Technical Field

The present disclosure relates to a memory device and a computing device using the same.

2. Description of the Related Art

A basic algorithm of a neural network is to derive an output matrix through an operation of an input matrix and a convolution filter. Specifically, the output matrix can he determined through a convolution operation of the input matrix and the convolution filter.

A convolution operation includes a combination of multiplication and summation operations. With the recent explosive growth of the neural network, a high-band and low-delay neural network engine is required. Accordingly, the size of the convolution fitter increases, and the amount of weight data included in the convolution filter is increasing exponentially. Similarly, the amount of input data included in the input matrix also increases exponentially, thereby requiring a very large amount of multiplication and summation operations to be performed to produce an output matrix.

It takes a long time to satisfy the increased requirements in the current system, which reduces its utilization. Therefore, it is necessary to develop a neural network engine which maintains a high band but satisfies a low delay.

SUMMARY

Aspects of the present disclosure provide a memory device which performs a convolution operation in the memory device and performs a simple and effective operation, and a computing device using the same.

Aspects of the present disclosure also provide a memory device which performs a convolution operation in the memory device and satisfies a low delay, and a computing device using the same.

Aspects of the present disclosure also provide a memory device including a MAC operator in which input data and output data are inputted and outputted simultaneously, and a computing device using the same.

According to an embodiment of the present disclosure, there is provided a memory device comprising: a memory cell configured to store weight data, a buffer memory configured to read the weight data from the memory cell, an input/output pad configured to receive input data and a multiply-accumulate (MAC) operator configured to receive the weight data from the buffer memory and receive the input data from the input/output pad to perform a convolution operation of the weight data and the input data, wherein the input data is provided to the MAC operator during a first period, and wherein the MAC operator performs the convolution operation of the weight data and the input data during a second period overlapping with the first period.

According to the aforementioned and other embodiment of the present disclosure, there is provided memory device comprising: a buffer memory configured to store weight data including first and second weight bits, an input/output pad configured to receive input data including first and second input bits and a MAC operator including first to third accumulators and configured to receive the weight data and the input data and perform a convolution operation of the weight data and the input data, wherein performing the convolution operation of the weight data and the input data by the MAC operator comprises, calculating a first product of the first weight bit and the first input bit and providing the first product to the first accumulator, calculating a second product of the second weight bit and the first input bit and providing the second product to the second accumulator, calculating a third product of the first weight bit and the second input bit and providing the third product to the second accumulator, and calculating a fourth product of the second weight bit and the second input hit and providing the fourth product to the third accumulator.

According to the aforementioned and other embodiment of the present disclosure, there is provided memory device comprising: a memory cell configured to store weight data, a buffer memory configured to read the weight data from the memory cell, an input/output pad configured to receive input data and a MAC operator configured to perform a convolution operation of the weight data and the input data, wherein the buffer memory reads the weight data from the memory cell before the input data is provided to the input/output pad, wherein the input data is provided to the MAC operator from the input/output pad during a first period, and wherein the weight data is provided to the MAC operator from the buffer memory during a second period overlapping with the first period.

According to the aforementioned and other embodiment of the present disclosure, there is provided computing device comprising: a memory device including a MAC operator and configured to store weight data and a processor configured to provide input data to the memory device, wherein the MAC operator receives the input data and the weight data and performs a convolution operation of the input data and the weight data, and wherein a first period, in which the input data is provided to the MAC operator, and a second period, in which the weight data is provided to the MAC operator, overlap each other.

However, aspects of the present disclosure are not restricted to those set forth herein. The above and other aspects of the present disclosure will become more apparent to one of ordinary skill in the art to which the present disclosure pertains by referencing the detailed description of the present disclosure given below.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects and features of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings, in which:

FIG. 1 is an exemplary diagram explaining a convolution operation.

FIG. 2 is an exemplary block diagram illustrating a computing device according to some embodiments.

FIG. 3 is an exemplary block diagram illustrating a nonvolatile memory according to some embodiments.

FIG. 4 is an exemplary diagram illustrating an operation of a computing device according to some embodiments.

FIG. 5 is an exemplary diagram illustrating an operation in which weight data is provided to a buffer memory from a memory cell according to some embodiments.

FIG. 6 is an exemplary diagram explaining an operation in which input data and weight data are provided to a MAC operator according to some embodiments.

FIG. 7 is an exemplary diagram illustrating an operation in which an operation result of the MAC operator according to some embodiments is provided as output data.

FIG. 8 is an exemplary diagram illustrating timings at which data are inputted/outputted according to some embodiments.

FIG. 9 is an exemplary diagram illustrating a period in which a MAC operator receives input data and weight data according to some embodiments.

FIGS. 10 to 12 are exemplary diagrams illustrating a multiplication operation of input data and output data according to some embodiments.

FIG. 13 is an exemplary block diagram illustrating a nonvolatile memory according to some embodiments.

FIG. 14 is an exemplary diagram illustrating timings at which data are inputted/outputted according to some embodiments.

DETAILED DESCRIPTION OF THE EMBODIMENTS

FIG. 1 is an exemplary diagram explaining a convolution operation.

Referring to FIG. 1 an output matrix 3 may be generated by performing a convolution operation on an input matrix 1 and a convolution filter (or kernel) 2. For example, the input matrix 1 may include first input data X₀ to twentieth input data X₁₉. Further, for example, the convolution filter 2 may include first weight data W₀ to fourth weight data W₃. Further, for example, the output matrix 3 may include first output data S₀ to twelfth output data S₁₁. Some embodiments of the present disclosure are not limited to those terms, and the following description will be clearly understood by those skilled in the art. For simplicity of description, although FIG. 1 illustrates a case Where the input matrix 1 is a 4×5 matrix, the convolution filter 2 is a 2×2 matrix and the output matrix 3 is a 3×4 matrix, this is merely exemplary and embodiments are not limited thereto. The input matrix 1 and the convolution filter 2 may include more or less data and the output matrix 3 may be determined according to the configuration of the input matrix 1 and the convolution filter 2.

The output matrix 3 may be determined by multiplication and summation operations of input data I_Data and weight data W_Data. That is, the convolution operation may be a combination of multiplication and summation operations. For example, the first output data S₀ and the second output data S₁ may be determined through the following Eq. 1 and Eq. 2:

S ₀ =X ₀ W ₀ +X ₁ W ₁ +X ₅ W ₂ +X ₆ W ₃   Eq. 1

S ₁ =X ₁ W ₀ +X ₂ W ₁ +X ₆ W ₂ +X ₇ W ₃   Eq. 2

As represented in Eq. 1, the first output data S₀ may be determined by summing a product of the first input data X₀ and the first weight data W₀, a product of the second input data X₁ and the second weight data W₁, a product of the sixth input data X₅ and the third weight data W₂ and a product of the seventh input data X₆ and the fourth weight data W₃. In the same way, as represented in Eq. 2, the second output data S₁ may be determined by summing a product of the second input data X₁ and the first weight data W₀, a product of the third input data X₃ and the second weight data W₁, a product of the seventh input data X₆ and the third weight data W₂ and a product of the eighth input data X₇ and the fourth weight data W₃. In the same way,

Similarly, the third output data S₂ to the twelfth output data S₁₁ may be determined by performing multiplication and summation operations performance on the first input data X₀ to the twentieth input data X₁₉and the first weight data. W₀ to the fourth weight data W₃, Hereinafter, a computing device 1000 which generates the output matrix 3, i.e., the computing device 1000 which performs the convolution operation of the input data I_Data and the weight data W_Data, will be described.

FIG. 2 is an exemplary block diagram illustrating a computing device according to some embodiments.

Referring to FIG. 2, the computing device 1000 according to some embodiments may include an interface 200, a processor 300, a cache memory 400 and a memory device 100.

The computing device 1000 according to some embodiments may include a personal computer such as a desktop computer, a server computer, a portable computer such as a laptop computer, and a portable device such as a cellular phone, a smart phone, a tablet, a MP3, a portable multimedia player (PMP), a personal digital assistant (PDA), a digital camera and a digital camcorder. Further, the computing device 1000 according to some embodiments may be a processing device based on a neural network. For example, the computing device 1000 according to some embodiments may be used in an image processing apparatus based on a convolution neural network (CNN), an automatic steering apparatus, a driving assistance apparatus or the like. In addition, the computing device 1000 according to some embodiments may be used to perform digital signal processing (DSP). However, the technical concept of the present disclosure is not limited thereto, and the computing device 1000 according to some embodiments of the present disclosure may be used in various fields by those skilled in the art as needed.

The interface 200 may be used to input/output data to/from the computing device 1000, For example, the first input data X₀ to the twentieth input data X₁₉ described with reference to FIG. 1 may be provided to the computing device 1000 through the interface 200, but the embodiments are limited thereto. For example, the first input data X₀ to the twentieth input data X₁₉ may be generated by a specific component included in the computing device 1000.

The processor 300 may execute program code for controlling the computing device 1000. The processor 300 according to some embodiments may include a central processing unit (CPU), a graphic processing unit (GPU), an application processor (AP), and a micro processor unit (MPU) and the like, but the embodiment are not limited thereto.

The cache memory 400 may be a memory capable of temporarily storing data in preparation for future requests so as to access data at a high speed. The data stored in the cache memory 400 may be the result of a previously performed operation. The cache memory 400 may be implemented as a static random access memory (SRAM), a fast static RAM (SRAM), and/or a dynamic RAM (DRAM), but the embodiment are not limited thereto. Although FIG. 1 illustrates that the cache memory 400 is separated from the processor 300, the embodiments are not limited thereto. For example, the cache memory 400 may be a tightly coupled memory (TCM) in the processor 300.

The memory device 100 may include a nonvolatile memory 10 and a memory controller 20. The memory controller 20 may read or erase data stored in the nonvolatile memory 10 or write data to the nonvolatile memory 10 in response to a request from the processor 300.

Further, according to some embodiments, the memory controller 20 may receive a MAC command (MAC CMD) and control the nonvolatile memory 10 to perform a convolution operation.

The nonvolatile memory 10 may temporarily store data. For example, the nonvolatile memory 10 may store the first weight data W₀ to the fourth weight data W₃. The nonvolatile memory 10 according to some embodiments may perform a convolution operation in response to a request from the memory controller 20.

The nonvolatile memory 10 may be a single level cell (SLC) or a multi level cell (MLC) of a flash memory, but the embodiments are not limited thereto. For example, the nonvolatile memory 10 may include a PC card (personal computer memory card international association (PCMCIA)), a compact flash card (CF), a smart media card (SM, SMC), a memory stick, a multimedia card (MMC, RS-MMC, MMCmicro), an SD card (SD, mini-SD, micro-SD, SDHC), a universal flash storage (UFS), an embedded multimedia card (eMMC), a NAND flash memory, a NOR flash memory and a vertical NAND flash memory.

Although not shown in the drawing, the memory controller 20 and/or the nonvolatile memory 10 may be mounted using packages such as Package on Package (PoP), Ball grid arrays (BGAs), Chip scale packages (CSPs), Plastic Leaded Chip Carrier (PLCC), Plastic Dual In-Line Package (PDIP), Die in Waffle Pack, Die in Wafer Form, Chip On Board (COB), Ceramic Dual In-Line Package (CERDIP), Plastic Metric Quad Flat Pack (MQFP), Thin Quad Flatpack (TQFP), Small Outline integrated Circuit (SOIC), Shrink Small Outline Package (SSOP), Thin Small Outline (TSOP), System In Package (SIP), Multi Chip Package (MCP), Wafer-level Fabricated Package (WFP), Wafer-Level Processed Stack Package (WSP) and the like, but the embodiments are not limited thereto. A detailed description of the nonvolatile memory 10 will be given with reference to FIG. 3.

FIG. 3 is an exemplary block diagram illustrating a nonvolatile memory according to some embodiments.

Referring to FIG. 3, the nonvolatile memory 10 may include a storage region 10_S and a peripheral region 10_P. According to some embodiments, a plurality of memory cells 11 may be disposed in the storage region 10_S. Each of the memory cells 11 may store data. For example, the memory cell 11 may store the first weight data W₀ to the fourth weight data W₃. For simplicity of description, a region other than the storage region 10_S in which the memory cells 11 are disposed is defined as the peripheral region 10_P.

According to some embodiments, a buffer memory 12, a multiply-accumulate (MAC) operator 13, a result output buffer 14 and an input/output (I/O) pad 15 may be disposed in the peripheral region 10_P of the nonvolatile memory 10.

The buffer memory 12 and the I/O pad 15 may provide data to the MAC operator 13, respectively. For example, the buffer memory 12 may provide the weight data. W_Data to the MAC operator 13 and the I/O pad 15 may provide the input data I_Data to the MAC operator 13.

The MAC operator 13 may perform a convolution operation on the received weight data W_Data and input data I_Data. The MAC operator 13 may the result output buffer 14 with a result of the convolution operation of the weight data W_Data and the input data I_Data. For simplicity of description, data provided to the result output buffer 14 is defined as result data R_Data. In some embodiments, the result data R_Data may be intermediate result data of the convolution operation of the weight data W_Data and the input data I_Data. For example, the result data R_Data may be each of the first output data S₀ to the twelfth output data S₁₁. As another example, the result data R_Data may be each of a product W₀X₀ of the first weight data W₀ and the first input data X₀ to a product W₃X₁₉ of the fourth weight data W₃ and the twentieth input data X₁₉. However, the embodiments are not limited thereto, and an intermediate result of the convolution operation of the weight data W_Data and the input data I_Data may be set to the result data R_Data by those skilled in the art.

The result output buffer 14 may store the result data R_Data. For example, each of the first output data S₀ to the twelfth output data S₁₁ may be temporarily stored in the result output buffer 14. When the first output data S₀ to the twelfth output data S₁₁ are all stored in the result output buffer 14, the result output buffer 14 may provide the first output data S₀ to the twelfth output data S₁₁ to the I/O pad 15.

The I/O pad 15 may receive the input data I_Data outside the nonvolatile memory 10. The I/O pad 15 may provide the received input data I_Data to the MAC operator 13. Further, the I/O pad 15 may receive the data stored in the result output buffer 14 and provide it to the outside of the nonvolatile memory 10 as the output data O_Data. In some embodiments, the output data O_Data may be intermediate result or final result data for the convolution operation of the weight data W_Data and the input data I_Data. For example, the output data O_Data may be the first output data S to the twelfth output data S₁₁. As another example, the output data O_Data may be each of a product W₀X₀ of the first weight data W₀ and the first input data X₀ to a product W₃X₁₉ of the fourth weight data W₃ and the twentieth input data X₁₉.

FIG. 4 is an exemplary diagram illustrating an operation of a computing device according to some embodiments.

Referring to FIG. 4, the processor 300 receives a request for a MAC operation. The processor 300 may provide the MAC command (MAC CMD) together with the input data I_Data to the memory controller 20.

The memory controller 20 may provide a read command (Read CMD) for the weight data W_Data to the nonvolatile memory 10 in response to the received MAC command (MAC CMD). The nonvolatile memory 10 may read the weight data W_Data stored in the storage region 10_S of the nonvolatile memory 10 (for example, stored in the memory cell 11) in response to the read command (Read CMD) for the weight data W_Data (S110). The read weight data W_Data may be provided to the buffer memory 12. An exemplary description will be given with reference to FIGS. 5 to 7.

FIG. 5 is an exemplary diagram illustrating an operation in which weight data is provided to a buffer memory from a memory cell according to some embodiments. FIG. 6 is an exemplary diagram explaining an operation in which input data and weight data are provided to a MAC operator according to some embodiments. FIG. 7 is an exemplary diagram illustrating an operation in Which an operation result of the MAC operator according to some embodiments is provided as output data.

Referring to FIGS. 4 and 5, the weight data W_Data may be stored in at least a part of the plurality of memory cells 11. The weight data W_Data may include, for example, the first weight data W₀ to fourth weight data W₃. The memory controller 20 may provide the read command CMD of the weight data W_Data to the nonvolatile memory 10 to provide the weight data W_Data stored in the memory cell 11 to the buffer memory 12. In other words, according to a command of the memory controller 20, the weight data W_Data may be latched from the memory cell 11 to the buffer memory 12.

That is, in response to the MAC command (MAC CMD), first, the memory controller 20 may control the weight data W_Data to be read from the memory cell 11 to the buffer memory 12. When the weight data W_Data has been read to the buffer memory 12, the nonvolatile memory 10 may provide a read completion response to the memory controller 20.

Referring to FIGS. 4 and 6, the memory controller 20 may receive the read completion response. When the memory controller 20 receives the read completion response, the memory controller 20 may provide the input data I_Data to the nonvolatile memory 10. For example, the memory controller 20 may provide the input data I_Data to the I/O pad 15.

The MAC operator 13 may receive the input data I_Data via through I/O pad 15. For example, the MAC operator 13 may receive the first input data X₀ to twentieth input data X₁₉ through the I/O pad 15.

While the MAC operator 13 is provided with the input data I_Data, the weight data W_Data latched to the buffer memory 12 may also be provided to the MAC operator 13. For example, while the MAC operator 13 is provided with the first input data X₀ to twentieth input data X₁₉ through the I/O pad 15, the first weight data W₀ to fourth weight data W₃ latched to the buffer memory 12 may also be provided to the MAC operator 13.

According to some embodiments, after the weight data W_Data is read from the memory cell 11 into the buffer memory 12, the MAC operator 13 may receive the input data I_Data through the I/O pad 15. For example, before the MAC operator 13 receives the first input data X₀ to twentieth input data X₁₉, the first weight data W₀ to fourth weight data W₃ stored in the memory cell 11 may be read into the buffer memory 12.

Referring to FIGS. 4 and 7, the MAC operator 13 may receive the input data I_Data and the weight data W_Data and perform a convolution operation of the input data I_Data and the weight data W_Data (S120). The MAC operator 13 may provide the result output buffer 14 with a convolution operation result of the input data I_Data and the weight data W_Data. In other words, result data R_Data generated in the MAC operator 13 may be provided to the result output buffer 14. As described above, the result data R_Data may be intermediate result data of the convolution operation of the weight data W_Data and the input data I_Data. For example, the result data R_Data may be each of the first output data S₀ to the twelfth output data S₁₁. As another example, the result data R_Data may be each of a product W₀X₀ of the first weight data W₀ and the first input data X₀ to a product W₃X₁₉ of the fourth weight data W₃ and the twentieth input data X₁₉. According to some embodiments, the result data R_Data stored in the result output butler 14 may be provided to the outside of the nonvolatile memory 10 as output data O_Data via the I/O pad 15.

FIG. 8 is an exemplary diagram illustrating timings at which data are inputted outputted according to some embodiments.

The timings at which data are inputted/outputted will be described with reference to FIGS. 5 to 8.

During a first period P1, the weight data W_Data may he latched to the buffer memory 12. That is, the weight data W_Data stored in the memory cell 11 of the nonvolatile memory 10 may he provided to the buffer memory 12 during the first period P1. In other words, the buffer memory 12 may receive and store the weight data W_Data from the memory cell 11 during the first period P1.

During a second period P2, the buffer memory 12 may provide the latched weight data W_Data to the MAC operator 13. In other words, the MAC operator 13 may receive the weight data W_Data from the buffer memory 12 during the second period P2.

During a third period P3, the I/O pad 15 may provide the input data I_Data to the MAC operator 13. In other words, the MAC operator 13 may receive the input data I_Data via the I/O pad 15 during the third period P3. According to some embodiments, the first period P1 may be earlier than the third period P3. In other words, the weight data W_Data may be read from the memory cell 11 to the buffer memory 12 before the MAC operator 13 receives the input data I_Data.

According to some embodiments, the second period P2 and the third period P3 may overlap each other. In other words, the MAC operator 13 may receive the weight data W_Data and the input data I_Data simultaneously. In this specification, the term “simultaneously” does not mean exactly the same time point. The term “simultaneously” means that two different events occur within the same period. In other words, the term “simultaneously” means that two events occur in parallel, not sequentially. For example, When the input data I_Data and the weight data W_Data are received within the same period, the input data I_Data and the weight data W_Data may be regarded as being received “simultaneously.” As another example, when a MAC operation is performed in a period in which the input data I_Data is provided, the MAC operation may be regarded as being performed “simultaneously” when the input data I_Data is provided. The meaning of “simultaneously” as used herein can be clearly understood by those skilled in the art. A period in which the MAC operator 13 receives the input data I_Data and the weight data W_Data will be described in more detail with reference to FIG. 9.

FIG. 9 is an exemplary diagram illustrating a period in which a MAC operator receives input data and weight data according to some embodiments. For simplicity of description, a repeated or similar description will be briefly given or omitted.

Referring to FIGS. 8 and 9, during the second period P2, the MAC operator 13 may receive the weight data W_Data from the buffer memory 12. According to some embodiments, the second period P2 may include a first sub-period SP1 and a second sub-period SP2.

During the first sub-period SP1, the buffer memory 12 may provide the first weight data W₀ to the MAC operator 13. In other words, the MAC operator 13 may receive the first weight data W₀ from the buffer memory 12 during the first sub-period SP1.

During the second sub-period SP2, the buffer memory 12 may provide the second weight data W₁ to the MAC operator 13. In other words, the MAC operator 13 may receive the second weight data W₁ from the buffer memory 12 during the second sub-period SP2. According to some embodiments, the second sub-period SP2 may be arranged after the first sub-period SP1, but the embodiments are not limited thereto.

During the third period P3, the MAC operator 13 may receive the input data I_Data via the I/O pad 15. According to some embodiments, the third period P3 may include a third sub-period SP3 and a fourth sub-period SP4.

During the third period P3, the I/O pad 15 may provide the first input data X₀ to the MAC operator 13. In other words, the MAC operator 13 may receive the first input data X₀ through the I/O pad 15 during the third sub-period SP3.

During the fourth sub-period SP4, the I/O pad 15 may provide the second input data X₁ to the MAC operator 13. In other words, the MAC operator 13 may receive the second input data X₁ through the I/O pad 15 during the fourth sub-period SP4. According to some embodiments, the fourth sub-period SP4 may be arranged after the third sub-period SP3, but the embodiments are not limited thereto.

According to some embodiments, the first sub-period SP1 and the third sub-period SP3 may overlap each other. Further, the second sub-period SP2 and the fourth sub-period SP4 may overlap each other. In other words, according to some embodiments, the MAC operator 13 may receive the first weight data W₀ and the first input data X₀ simultaneously. Further, the MAC operator 13 may receive the second weight data W₁ and the second input data X₁ simultaneously,

Referring again to FIGS. 5 to 8, during a fourth period P4, the MAC operator 13 may perform a convolution operation of the input data I_Data and the weight data W_Data. According to some embodiments, the fourth period P4 and the second period P2 may overlap each other. Further, according to some embodiments, the fourth period P4 and the third period P3 may overlap each other. In other words, the MAC operator 13 may perform a convolution operation of the input data I_Data and the weight data W_Data simultaneously while receiving the input data I_Data and the weight data W_Data.

Although not shown, during the fourth period P4, the MAC operator 13 may provide an intermediate result of the convolution operation of the input data I_Data and the weight data W_Data to the result output buffer 14. In other words, during the fourth period P4, the result output buffer 14 may be provided with the result data R_Data.

During a fifth period P5, the result output buffer 14 may provide the output data O_Data to the outside of the nonvolatile memory 10 through the I/O pad 15. As described above, the output data O_Data may be, for example, the first output data S₀ to the twelfth output data S₁₁, or a product W₀X₀ of the first weight data W₀ and the first input data X₀ to a product W₃X₁₉ of the fourth weight data W₃ and the twentieth input data X₁₉.

According to some embodiments, the nonvolatile memory 10 may maintain a busy state from when the weight data W_Data is latched to the buffer memory 12 from the memory cell 11 until when the operation of the MAC operator 13 is terminated. In other words, while an internal operation of the nonvolatile memory 10 is performed, a busy state signal RnBx may be a logical low level (0).

According to some embodiments, a convolution operation of the input data I_Data and the weight data W_Data may be a combination of multiplication and summation operations. For example, referring to Eq. 1 as described above, the first output data S₀ may be the sum of a product of the first input data X₀ and the first weight data W₀, a product of the second input data X₁ and the second weight data W₁, a product of the sixth input data X₅ and the third weight data W₂ and a product of the seventh input data X₆ and the fourth weight data W₃. An effective multiplication operation of the input data I_Data and the weight data W_Data will be described with reference to FIGS. 10 to 12.

FIGS. 10 to 12 are exemplary diagrams illustrating a multiplication operation of input data and output data according to some embodiments. For simplicity of description, FIGS. 10 to 12 illustrate a multiplication operation of the first input data X₀ and the first weight data W₀ as an example, but the embodiments are not limited thereto. Further, for simplicity of description, it is assumed that the first input data X₀ is 3-bit data and the first weight data W₀ is also 3-bit data, but the embodiments are not limited thereto. In FIGS. 10 to 12, the first weight data W₀ is defined as data in which the most significant bit (MSB) is wb₂, the second bit is wb₁, and the least significant bit (LSB) is wb₀. Further, the first input data X₀ is defined as data in which the MSB is xb₂, the second bit is xb₁, and the LSB is xb₀.

Referring to FIGS. 9 to 12, the MAC operator 13 may include a first multiplier M_1, a first accumulator AC_1, a second accumulator AC_2, a third accumulator AC_3, a fourth accumulator AC_4 and a fifth accumulator AC_5.

The MAC operator 13 may receive the first weight data W₀ during the first sub-period SP1 and may receive the first input data X₀ during the third sub-period SP3. According to some embodiments, during the first sub-period SP1, all bits of the first weight data W₀ may be simultaneously provided and latched to the first multiplier M_1. In other words, the first weight data W₀ may be a multiplicand of the first multiplier M_1. For example, during the first sub-period SP1, wb₂, wb₁ and wb₀ may be simultaneously provided and latched to the first multiplier M_1. On the other hand, during the third sub-period SP3, the first input data X₀ may be sequentially provided to the first multiplier M_1. In other words, the first input data X₀ may be a multiplier of the first multiplier M_1. For example, during the third sub-period SP3, xb₂, xb₁ and xb₀ may be sequentially provided.

First, xb₀ may be provided to the first multiplier M_1. At this time, the first multiplier M_1 may calculate wb₀xb₀, wb₁xb₀ and wb₂xb₀. The operations of wb₀xb₀, wb₁xb₀ and wb₂xb₀ may be performed in parallel in the first multiplier M_1. The first multiplier M_1 may provide wb₀xb₀ to the first accumulator AC_1, wb₁xb₀ to the second accumulator AC_2, and wb₂xb₀ to the third accumulator AC_3.

Then, xb₁ may be provided to the first multiplier M_1. At this time, the first multiplier M_1 may calculate wb₀xb₁, wb₁xb₁ and wb₂xb₁. The operations of wb₀xb₁, wb₁xb₁ and wb₂xb₁ may be performed in parallel in the first multiplier M_1. The first multiplier M_1 may provide wb₀xb₁ to the second accumulator AC_2, wb₁xb₁ to the third accumulator AC_3, and wb₂xb₁ to the fourth accumulator AC_4.

Then, xb₂ may be provided to the first multiplier M_1. At this time, the first multiplier M_1 may calculate wb₀xb₂, wb₁xb₂ and wb₂xb₂. The operations of wb₀xb₂, wb₁xb₂ and wb₂xb₂ may be performed in parallel in the first multiplier M_1. The first multiplier M_1 may provide wb₀xb₂ to the third accumulator AC_3, wb₁xb₂ to the fourth accumulator AC_4, and wb₂xb₂ to the fifth accumulator AC_5.

According to some embodiments, each of the outputs of the first accumulator AC_1 to the fifth accumulator AC_5 may be a bit corresponding to each digit of the product W₀X₀ of the first weight data W₀ and the first input data X₀. According to some embodiments, the output of the first accumulator AC_1 may be the LSB of the product W₀X₀ of the first weight data W₀ and the first input data X₀, and the output of the fifth accumulator AC_5 may be the MSB of the product W₀X₀ of the first weight data W₀ and the first input data X₀. The MAC operator 13 according to some embodiments may perform a multiplication operation of the weight data W_Data and the input data I_Data in a simple and effective manner.

Although FIGS. 10 to 12 show the first multiplier M_1 as one component, the embodiments are not limited thereto. The embodiments of the present disclosure may be implemented using multiple multipliers, without undue experimentation, by those skilled in the art.

FIG. 13 is an exemplary block diagram illustrating a nonvolatile memory according to some embodiments. For simplicity of description, a repeated or similar description will be briefly given or omitted.

Referring to FIG. 13, in the nonvolatile memory 10, the memory cells 11 may be disposed in the storage region 10_S. Further, the buffer memory 12, the MAC operator 13, a result output pad 16 and the I/O pad 15 may be disposed in the peripheral region 10_P of the nonvolatile memory 10. in other words, the nonvolatile memory 10 according to sonic embodiments may be the nonvolatile memory 10 described with reference to FIG. 3, which further includes the result output pad 16 instead of the result output buffer 14.

The MAC operator 13 may generate the result data R_Data by performing a convolution operation on the weight data W Data and the input data I_Data. The result data R_Data generated in the MAC operator 13 may be provided to the result output pad 16. As described above, the result data R_Data may be intermediate result data of the convolution operation of the weight data W_Data and the input data I_Data. For example, the result data R_Data may be each of the first output data S₀ to the twelfth output data S₁₁. As another example, the result data R_Data may be each of a product W₀X₀ of the first weight data W₀ and the first input data X₀ to a product W₃X₁₉ of the fourth weight data W₃ and the twentieth input data X₁₉.

The result data R_Data provided to the result output pad 16 may be provided to the outside of the nonvolatile memory 10 as output data. O_Data. According to some embodiments, the output data O_Data may be the same data as the result data R_Data.

According to some embodiments, the result output pad 16 may be configured separately from the I/O pad 15 provided with the input data I_Data. Thus, while the input data I_Data is provided to the MAC operator 13 via the I/O pad 15, the output data O_Data may be provided to the outside of the nonvolatile memory 10 through the result output pad 16. An exemplary description will be given with reference to FIG. 14.

FIG. 14 is an exemplary diagram illustrating timings at which data are inputted/outputted according to some embodiments. For simplicity of description, a repeated or similar description will be briefly given or omitted.

Referring to FIGS. 13 and 14, during a first period P1, the buffer memory 12 may latch the weight data W_Data. That is, the weight data W_Data stored in the memory cell 11 of the nonvolatile memory 10 may be provided to the buffer memory 12 during the first period P1.

During a second period P2, the buffer memory 12 may provide the latched weight data W_Data to the MAC operator 13.

During a third period P3, the I/O pad 15 may provide the input data I_Data to the MAC operator 13. According to some embodiments, the second period P2 and the third period P3 may overlap each other. In other words, the MAC operator 13 may receive the weight data W_Data and the input data I_Data simultaneously. According to some embodiments, the first period P1 may be earlier than the third period P3.

During a fourth period P4, the MAC operator 13 may perform a convolution operation of the input data I_Data and the weight data W_Data. According to some embodiments, the fourth period P4 and the second period P2 may overlap each other. Further, according to some embodiments, the fourth period P4 and the third period P3 may overlap each other. In other words, the MAC operator 13 may perform a convolution operation of the input data I_Data and the weight data W_Data simultaneously while receiving the input data I_Data and the weight data W_Data.

During a fifth period P5, the MAC operator 13 may provide the result data R_Data to the result output pad 16. The result output pad 16, which has received the result data R_Data, may provide it to the outside of the nonvolatile memory 10 as output data O_Data. According to some embodiments, the fifth period P5 may at least partially overlap with the second period P2. Further, the fifth period P5 may at least partially overlap with the third period P3. Furthermore, the fifth period P5 may at least partially overlap with the fourth period P4. In other words, the MAC operator 13 may provide the output data O_Data to the outside of the nonvolatile memory 10 through the result output pad 16 simultaneously while receiving the input data I_Data through the I/O pad 15 in at least a partial period. For example, the output data O_Data may be each of the first output data S₀ to the twelfth output data S₁₁, or each of a product W₀X₀ of the first weight data W₀ and the first input data X₀ to a product W₃X₁₉ of the fourth weight data W₃ and the twentieth input data X₁₉ .

In concluding the detailed description, those skilled in the art will appreciate that many variations and modifications may be made to the preferred embodiments without substantially departing from the principles of the present invention. Therefore, the disclosed preferred embodiments of the invention are used in a generic and descriptive sense only and not for purposes of limitation. 

1. A memory device comprising: a memory cell configured to store weight data; a buffer memory configured to read the weight data from the memory cell; an input/output pad configured to receive input data; and a multiply-accumulate (MAC) operator configured to receive the weight data from the buffer memory and receive the input data from the input/output pad to perform a convolution operation of the weight data and the input data, wherein the input data is provided to the MAC operator during a first period, and wherein the MAC operator performs the convolution operation of the weight data and the input data during a second period overlapping with the first period.
 2. The memory device of claim 1, wherein the weight data is provided to the MAC operator during a third period overlapping with the first period.
 3. The memory device of claim 1, wherein before the input data is provided to the MAC operator, the buffer memory reads the weight data from the memory cell.
 4. The memory device of claim 1, wherein the input data includes first and second input data, wherein the weight data includes first and second weight data, wherein the first and second input data are provided to the MAC operator during first and second subperiods, respectively, wherein the first and second weight data are provided to the MAC operator during third and fourth sub-periods, respectively, and wherein the first stub-period overlaps with the third sub-period, and the second sub-period overlaps with the fourth sub-period.
 5. The memory device of claim 1, wherein the weight data includes first and second weight bits, wherein the input data includes first and second input bits, wherein the MAC operator includes a first multiplier and first to third accumulators, wherein performing the convolution operation by the MAC operator comprises performing a multiplication operation of the weight data and the input data by the first multiplier, and wherein performing the multiplication operation by the first multiplier comprises, by the first multiplier, calculating a first product of the first weight bit and the first input bit and providing the first product to the first accumulator, calculating a second product of the second weight bit and the first input bit and providing the second product to the second accumulator, calculating a third product of the first weight bit and the second input bit and providing the third product to the second accumulator, and calculating a fourth product of the second weight bit and the second input bit and providing the fourth product to the third accumulator.
 6. The memory device of claim 5, wherein an output of the first accumulator is a least significant bit (LSB) of a product of the weight data and the input data.
 7. The memory device of claim 5, wherein the second accumulator outputs a sum of the second product and the third product.
 8. The memory device of claim 1, further comprising a result output buffer configured to store a convolution operation result of the weight data and the input data.
 9. The memory device of claim 8, wherein the convolution operation result stored in the result output buffer is outputted through the input/output pad.
 10. The memory device of claim 1, further comprising a result output pad which outputs a convolution operation result of the weight data and the input data and is different from the input/output pad.
 11. The memory device of claim 10, wherein the MAC operator provides the convolution operation result to the result output pad during a fourth period overlapping with the second period.
 12. A memory device comprising: a buffer memory configured to store weight data including first and second weight bits; an input/output pad configured to receive input data including first and second input bits; and a MAC operator including first to third accumulators and configured to receive the weight data and the input data and perform a convolution operation of the weight data and the input data, wherein performing the convolution operation of the weight data and the input data by the MAC operator comprises, calculating a first product of the first weight bit and the first input bit and providing the first product to the first accumulator, calculating a second product of the second weight bit and the first input bit and providing the second product to the second accumulator, calculating a third product of the first weight bit and the second input bit and providing the third product to the second accumulator, and calculating a fourth product of the second weight bit and the second input bit and providing the fourth product to the third accumulator.
 13. The memory device of claim 12, wherein the first product and the second product are performed in parallel, and wherein the third product and the fourth product are performed in parallel.
 14. The memory device of claim 12, wherein performing the convolution operation by the MAC operator comprises performing a multiplication operation of the weight data and the input data by the MAC operator, and wherein an output of the first accumulator is a least significant bit (LSB) of the multiplication operation.
 15. The memory device of claim 12, wherein the input data is provided to the MAC operator during a first period, and wherein the MAC operator performs the convolution operation during a second period overlapping with the first period.
 16. The memory device of claim 12, herein the input data is provided to the MAC operator during a first period, and wherein the weight data is provided to the MAC operator during a third period overlapping with the first period.
 17. The memory device of claim 12, further comprising a memory cell configured to store the weight data, wherein the weight data is read from the memory cell and stored in the buffer memory.
 18. The memory device of claim 17, wherein before the MAC operator receives the input data, the weight data is read from the memory cell to the buffer memory. 19-20. (canceled)
 21. A memory device comprising: a memory cell configured to store weight data; a buffer memory configured to read the weight data from the memory cell; an input/output pad configured to receive input data; and a MAC operator configured to perform a convolution operation of the weight data and the input data, wherein the buffer memory reads the weight data from the memory cell before the input data is provided to the input/output pad, wherein the input data is provided to the MAC operator from the input/output pad during a first period, and wherein the weight data is provided to the MAC operator from the buffer memory during a second period overlapping with the first period. 22-26. (canceled) 